// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/*!
 * @file calculatorServerImpl.hpp
 * Server implementation for interfaces
 *
 * This file was generated by the tool fastddsgen (version: 4.2.0).
 */

#ifndef FAST_DDS_GENERATED__CALCULATOR_SERVERIMPL_HPP
#define FAST_DDS_GENERATED__CALCULATOR_SERVERIMPL_HPP

#include "calculator.hpp"
#include "calculatorServer.hpp"

namespace calculator_example {

//{ interface Calculator

struct CalculatorServerImplementation :
    public CalculatorServer_IServerImplementation
{

    calculator_example::detail::Calculator_representation_limits_Out representation_limits(
            const eprosima::fastdds::dds::rpc::RpcRequest& info) override
    {
        static_cast<void>(info);
        throw eprosima::fastdds::dds::rpc::RemoteUnsupportedError("Operation 'representation_limits' is not implemented");
    }

    int32_t addition(
            const eprosima::fastdds::dds::rpc::RpcRequest& info,
            /*in*/ int32_t value1,
            /*in*/ int32_t value2) override
    {
        static_cast<void>(info);
        static_cast<void>(value1);
        static_cast<void>(value2);
        throw eprosima::fastdds::dds::rpc::RemoteUnsupportedError("Operation 'addition' is not implemented");
    }

    int32_t subtraction(
            const eprosima::fastdds::dds::rpc::RpcRequest& info,
            /*in*/ int32_t value1,
            /*in*/ int32_t value2) override
    {
        static_cast<void>(info);
        static_cast<void>(value1);
        static_cast<void>(value2);
        throw eprosima::fastdds::dds::rpc::RemoteUnsupportedError("Operation 'subtraction' is not implemented");
    }

};

//} interface Calculator


} // namespace calculator_example


#endif  // FAST_DDS_GENERATED__CALCULATOR_SERVERIMPL_HPP
